package com.iretailer.report.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @Auther: xjw
 * @Date: 2019/2/23 22:36
 * @Description:
 */
@TableName(value = "s_users_malls")
public class UserMall {

    @JSONField(name = "Id")
    @TableId(value = "Id", type = IdType.AUTO)
    private Long id;

    @JSONField(name = "UserId")
    @TableField(value = "UserId")
    private String userId;

    @JSONField(name = "MallId")
    @TableField(value = "MallId")
    private String mallId;

    /***
     *  用户创建的时候 为 1
     */
    @TableField(value = "Created")
    private int created;

    public UserMall() {
    }

    public UserMall(String userId, String mallId, int created) {
        this.userId = userId;
        this.mallId = mallId;
        this.created = created;
    }

    public int getCreated() {
        return created;
    }

    public void setCreated(int created) {
        this.created = created;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getMallId() {
        return mallId;
    }

    public void setMallId(String mallId) {
        this.mallId = mallId;
    }
}
